package com.api.service;

import com.api.bean.User;
import org.springframework.web.bind.annotation.*;

/**
 * Created by 许小宝 on 2017/9/20.
 */
@RequestMapping("/refactor")
public interface HelloService {

    @GetMapping(value = "/hello")
    String hello();

    @GetMapping("/hello2")
    String hello(@RequestParam("name") String name);

    @GetMapping("/hello3")
    User hello(@RequestHeader("name") String name, @RequestHeader("age") Integer age);

    @PostMapping("/hello4")
    String hello(@RequestBody User user);
}
